import $api from './server'

export const addRoom = async (data)=>{
    let res = await $api.post('/room/add',data)
    return res.data;
}

export const getAllRoom = async (data)=>{
    let res = await $api.post('/room/getAll',data)
    return res.data;
}

export const delRoom = async (data)=>{
    let res = await $api.post('/room/del',data)
    return res.data;
}
export const editRoom = async (data)=>{
    let res = await $api.post('/room/edit',data)
    return res.data;
}
